package coe.pumbaa

class Role{
    String type
    int level //lower is high priority 0: admin, 1: teacher, 2: student, 3: visitor, 4: annoymous

    static hasMany = [users:User]

    static constraints = {
        type(blank:false, unique:true)
        level(blank:false)
    }
    
    def doWithCriteria(pamras){
        ROle.list(pamras)
    }
}


